package com.crc.luojian.util;

import com.crc.luojian.beans.model.ApplicationContext;
import com.crc.luojian.method.MethodHandlerMappering;

/**
 * @Author luojian
 * @Description //TODO 
 * @Date  2021/6/10 18:16
 * @Param 
 * @return 
 **/
public class ApplicationContextUtils {

    private volatile static ApplicationContext applicationContext = new ApplicationContext();
    private static MethodHandlerMappering methodHandlerMappering = new MethodHandlerMappering();
    public static void refresh() {
        applicationContext.refresh();
        methodHandlerMappering.init();
    }

    public static ApplicationContext getContext() {
        return applicationContext;
    }
    public static MethodHandlerMappering getMapping() {
        return methodHandlerMappering;
    }
}